package com.woldier.filesystem.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "file")
public class File {
    /**
     * 主键
     */
    @TableId(type = IdType.ID_WORKER)
    private Long id;

    /**
     * 用户名与仓库名的拼接
     */
    private String nameRepo ;
    /**
     * 路径与文件名的拼接
     */
    private String pathFile;



//    @TableField(fill = FieldFill.INSERT)
//    private LocalDateTime createTime;

    //@TableField(fill = FieldFill.INSERT_UPDATE) // 新增的时候update也有值
    private LocalDateTime updateTime;



}
